package com.voxel.sense.infomsg.data.bean;

import com.example.com.common.widget.diffui.DiffUiDataCallBack;

import java.io.Serializable;

/**
 * Created by ChenYiYao on 2018/6/22.
 */
public class MultiItemBean<T> implements DiffUiDataCallBack.UidataDiffer<MultiItemBean> ,Serializable {
    private static final long serialVersionUID = 861033456240184323L;
    private T mData;
    private int mType;
    private String extra;

    public MultiItemBean(T data, int type) {
        mData = data;
        mType = type;
    }

    public MultiItemBean() {
    }

    public MultiItemBean(T data, int type, String extra) {
        mData = data;
        mType = type;
        this.extra = extra;
    }

    public int getType() {
        return mType;
    }

    public void setType(int type) {
        mType = type;
    }

    public T getData() {
        return mData;
    }

    public void setData(T data) {
        mData = data;
    }

    public String getExtra() {
        return extra;
    }

    public void setExtra(String extra) {
        this.extra = extra;
    }

    @Override
    public boolean isSame(MultiItemBean old) {
        return false;
    }

    @Override
    public boolean isDataContentSame(MultiItemBean old) {
        return false;
    }
}
